﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace SurfaceNodeBattle
{
    class Node
    {
        Vector2 position;
        Color color;
        int nrOfTroops;
        Color lastAttacker;

        #region setters/getters
        public Color Color
        {
            get { return color; }
            set { color = value; }
        }
        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }
        public int NrOfTroops
        {
            get { return nrOfTroops; }
            set { nrOfTroops = value; }
        }
        public Color LastAttacker
        {
            get { return lastAttacker; }
            set { lastAttacker = value; }
        }


        #endregion


        public void incTroops() { nrOfTroops++; }
        public void decTroops() { nrOfTroops--; }

        public Node(Vector2 pos, Color col, int startNrOfTroops)
        {
            position = pos;
            color = lastAttacker = col;
            nrOfTroops = startNrOfTroops;
        }

    }
}
